<%@ page language="java" import="java.util.Map" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>授权认证${rsCode }${rsDesc }</title>
<link href="<%=basePath%>bootstrap/bootstrap.min.css" rel="stylesheet"
	type="text/css" />
<script src="<%=basePath%>js/lib/base.js" type="text/javascript"></script>
<style type="text/css">
<!--
html{
    margin:0;
	padding:0;
	width:100%;
	height:100%;
	background-attachment: fixed;
	background-color:#005084;
	background-image: url(<%=basePath%>images/page_bg.jpg);
	background-repeat: repeat-x;
	background-position: left center;
	position:relative;
}
div,*,h1,h2,h3,h4,h5,html,body,input,lable,a { margin:0; padding:0;}
*{ font-size:12px; line-height:150%;}
a{ text-decoration:none;}
.page { width:742px; position:absolute; top:50%; left:50%; margin-left:-381px; margin-top:-220px;}
.clear { clear:both;}
.main{  height:384px; background: transparent url(<%=basePath%>images/authResult.png) no-repeat center center; position:relative;}
.logo { float:left; padding:10px 20px;}
.login_table {
	width:330px; position:absolute;	text-align: center; 	top: 160px;	right: 50px; font-size:18px;}
.login_table table td { font-size:14px; height:30px; vertical-align:middle;}
.btn {
    background-color: transparent;
    background-image: url("<%=basePath%>images/login_btn.png");
    background-repeat: no-repeat;
    border-style: none;
    color: #FFFFFF;
    height: 26px;
    text-align: center;
    width: 80px;
}
table td .inp {margin:0px; padding:0px; width:150px;}
.footer {
	width:736px; padding:0;	margin:0px auto; text-align:center;	color:#fff;	clear: both;
}
.footer a { font-size:12px; marign:0 auto; color:#fff; line-height:200%; }

.close_btn{
font-family:Microsoft Yahei;
font-weight: bold;
width:120px;height:48px;
background:url(<%=basePath%>images/closeWin.png) no-repeat;
border:0 solid #000000;
font-size:22px;
color: white;
}

-->
</style>
	
	
<style type="text/css">
.choosed {
	font-weight: bold;
}
</style>
</head>
<SCRIPT language=javascript>
if (top != this) {
 top.location.href = this.location.href;
}
var bSubmit=false;

//关闭当前页面

function closeWin() {
	 var browserName = navigator.userAgent;
	 // alert(browserName);
	 if (browserName.indexOf("Firefox")>0) {
		 if (confirm("您查看的网页正在试图关闭窗口,是否关闭窗口?")){
				window.open('', '_self', '');
				window.close();
			alert("如果页面不能关闭,请使用IE浏览器。");
			}
	} else if (browserName.indexOf("Chrome")>0){
		
		if (confirm("您查看的网页正在试图关闭窗口,是否关闭?")) {
			window.open('', '_parent','');
			window.close();
			alert("如果页面不能关闭,请使用IE浏览器。");
		}
	} else {
		//if (confirm("您查看的网页正在试图关闭窗口,是否关闭窗口?")) {
			window.opener = null; 
			window.close();
		//}
	}

}
	function CheckKeypress(ev) {
		var ev = ev || window.event;
		if (ev.keyCode == 13) {
			//closeWin();
		}
	}
	
</script>
<body  leftMargin=0 topMargin=0 marginheight="0" marginwidth="0" style="overflow:hidden;overflow-y:hidden"     >
<div class="page">
<div class="main">
<div class="logo"><img src="<%=basePath%>images/4pxtech.png" width="190" height="47" /></div>
<div class="login_table">
<c:if test="${empty rsCode}">
	<img src="<%=basePath%>images/auth_failed.png" width='50' height='50' style="vertical-align:middle" />&nbsp;&nbsp;授权失败,请稍后重试.
</c:if>
<c:if test="${(not empty rsCode && (rsCode != 'true')) }">
	<img src="<%=basePath%>images/auth_failed.png" width='50' height='50' style="vertical-align:middle" />&nbsp;&nbsp;${rsDesc }
</c:if>
<c:if test="${(not empty rsCode && rsCode == 'true')}">
	<img src='<%=basePath%>images/auth_success.png' width='50' height='50' style='vertical-align:middle' />&nbsp;&nbsp;授权成功！
</c:if>

<br /><br />
<button onclick="closeWin()" class="close_btn">关闭 窗口</button>
</div>
</div>
<div class="clear"></div>
<div class="footer"> 
</div>

</body>
</html>